package com.org.myapplication.ui;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

import com.org.myapplication.R;

public class MainActivity extends AppCompatActivity {

    Button bt_camera, bt_vl53l5,bt_zoom;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        initview();
    }

    private void initview() {
        bt_camera = findViewById(R.id.bt_camera);
        bt_vl53l5 = findViewById(R.id.bt_vl53l5);
        bt_zoom = findViewById(R.id.bt_zoom);
    }

    @Override
    protected void onResume() {
        super.onResume();
        bt_camera.setOnClickListener(view -> {
            startActivity(new Intent(MainActivity.this,CameraActivity.class));
        });
        bt_vl53l5.setOnClickListener(view -> {
           // startActivity(new Intent(MainActivity.this,CameraActivity.class));
        });
        bt_zoom.setOnClickListener(view -> {
            startActivity(new Intent(MainActivity.this,ZoomActivity.class));
        });
    }
}